[Bug 11526] newlines in attribute values

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11526

Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xn--mlform-iua@xn--mlform-i
                   |                            |ua.no

--- Comment #5 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-05-26 00:00:36 UTC ---
(In reply to comment #0)
> The svg path d attribute in section 12, and the sample document is spread over
> several lines. These newlines are normalised to space in an XML DOM but not in
> an HTML as stated in section 7.

The Editor's solution is probably OK. 

However, the exceedingly long line cause the page to scroll sidaways, creating
a very strange result (with lots of white, empty space on the right side of the
document.)

As discussed off-list, please add a span element, and some CSS to the code
inside the <pre> element, to make it behave more reasonable. Suggested markup
plus CSS:


<pre>
    [ snipping lost of code ]
 &lt;!-- Note that the following attribute contains no newlines. -->
 &lt;path  transform="translate(60, -175)" <span 
 style="background:yellow;white-space:normal;">d="M153 334 C153
334 151 334 151 334 C151 339 153 344 156 344 C164 344 171 339 171 334
C171 322 164 314 156 314 C142 314 131 322 131 334 C131 350 142 364 156
364 C175 364 191 350 191 334 C191 311 175 294 156 294 C131 294 111 311
111 334 C111 361 131 384 156 384 C186 384 211 361 211 334 C211 300 186
274 156 274"</span>  style="fill:white;stroke:red;stroke-width:2"/>

[ snipping lost of code ]

</pre>

The above code will,  due to the span element with white-space:normal, cause
that text o be - visually - broken over several lines. This is prettier. We
don't need the current, draconian way to demonstrate that the line is long ...

I do not  re-open this bug, because it is -after all- only a display issue.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 26 May 2011 00:00:39 UTC