Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug(?) in outerHTML when text explains HTML tags :)



I am guessing that this is not the intended behaviour (and if not, I'll file a bug)

Suppose you have the following snippet in an HTML document:

<p>Unordered lists take the form:

<pre>
      &lt;UL&gt;
      &lt;LI&gt; <i>... first list item</i>
      &lt;LI&gt; <i>... second list item</i>
      ...
    &lt;/UL&gt;
</pre>

which displays in the browser as

Unordered lists take the form:

    <UL>
      <LI> ... first list item
      <LI> ... second list item
      ...
    </UL>


When you call outerHTML on the document, that portion gets converted to:

<P>Unordered lists take the form:

<PRE>
<UL>
      <LI> <I>... first list item</I>
      <LI> <I>... second list item</I>
      ...
    </UL></PRE>


and thereby displays as an actual unordered list if the resultant HTML is re-rendered.



Matt Gough


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.