Test: URI Attribute value & Raw Text Elements

1. URI Attribute value

Unquoted attribute value syntax + URI

<a title=http://example.com/>

2. Raw Text Elements and Escapable Raw Text Elements

EscapableRaw Text ElementsNewlines ignored
<title>start and end
<pre>start and end
<listing>start and end
<textarea>start
<xmp>end
<plaintext>end

2.1. <pre>, <listing>

Newlines at the beginning and end of the content are treated like optional newline, and ignored.

    This is <pre>.
    This is <pre>.
This is <listing>. This is <listing>.

2.2. <textarea>

The leading newline in the contents would be treated like the optional newline, and ignored.

@see 13.1.2.5 Restrictions on content models

2.3. <xmp>, <plaintext>

Newlines at the end are ignored

<b>This</b> is <xmp>. This is &lt;xmp&gt;. <b>This</b> is <plaintext>. This is &lt;plaintext&gt;. </body> </html>