<br> from <br />

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

<br> from <br />

Eliot Graff

Hi.

 

ReSpec is stripping out my self-closing <br /> tags and leaving them without the trailing slash, as in the following (polyglot markup requires the closing slash).

 

Source:

                                                                <p>

                                                                <code>Content-type: text/html; charset=utf-8</code>

                                                                <br />

                                                                or

                                                                <br />

                                                                <code>Content-type: text/html; charset=utf-16</code>

                                                                </p>

 

Post-ReSpec:

                                                                <p>

                                                                <code>Content-type: text/html; charset=utf-8</code>

                                                                <br>

                                                                or

                                                                <br>

                                                                <code>Content-type: text/html; charset=utf-16</code>

                                                                </p>

 

Is this by design? If not, is there a place to log a bug to have this behavior changed?

 

Thanks,

 

Eliot

 

Reply | Threaded
Open this post in threaded view
|

Re: <br> from <br />

Shane McCarron
It's by design.  However, if you have respec generate XHTML it should leave them in place?

On 12/9/2010 3:14 PM, Eliot Graff wrote:

Hi.

 

ReSpec is stripping out my self-closing <br /> tags and leaving them without the trailing slash, as in the following (polyglot markup requires the closing slash).

 

Source:

                                                                <p>

                                                                <code>Content-type: text/html; charset=utf-8</code>

                                                                <br />

                                                                or

                                                                <br />

                                                                <code>Content-type: text/html; charset=utf-16</code>

                                                                </p>

 

Post-ReSpec:

                                                                <p>

                                                                <code>Content-type: text/html; charset=utf-8</code>

                                                                <br>

                                                                or

                                                                <br>

                                                                <code>Content-type: text/html; charset=utf-16</code>

                                                                </p>

 

Is this by design? If not, is there a place to log a bug to have this behavior changed?

 

Thanks,

 

Eliot

 


-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: <br> from <br />

Robin Berjon-2
On Dec 9, 2010, at 23:08 , Shane McCarron wrote:
> It's by design.  However, if you have respec generate XHTML it should leave them in place?

Well, it's not entirely by design in the sense that it doesn't hate <br/> :) It's just that if you request the HTML serialisation, it outputs HTML. As Shane said, you should request XHTML in the popup save menu.

We could add support for additional serialisations if needed of course.

--
Robin Berjon - http://berjon.com/