Skip to content

Commit

Permalink
Use HTMLPreElement for xmp and listing
Browse files Browse the repository at this point in the history
Fixes #1015, and matches all non-Gecko engines. Before #1012 the standard was unclear on this; in #1012 the standard sided with Gecko, but per #1015 it is better to side with the majority.
  • Loading branch information
domenic authored and annevk committed Apr 22, 2016
1 parent 09f0e79 commit ca31ca2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source
Expand Up @@ -9617,10 +9617,12 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> { };</pre>
<code>HTMLUnknownElement</code>.</p></li>

<li><p>If <var>name</var> is <code>acronym</code>, <code>basefont</code>, <code>big</code>,
<code>center</code>, <code>listing</code>, <code>nobr</code>, <code>noembed</code>,
<code>noframes</code>, <code>plaintext</code>, <code>rb</code>, <code>rtc</code>,
<code>strike</code>, <code>tt</code>, or <code>xmp</code>, then return
<code>HTMLElement</code>.</p></li>
<code>center</code>, <code>nobr</code>, <code>noembed</code>, <code>noframes</code>,
<code>plaintext</code>, <code>rb</code>, <code>rtc</code>, <code>strike</code>, or
<code>tt</code>, then return <code>HTMLElement</code>.</p></li>

<li><p>If <var>name</var> is <code>listing</code> or <code>xmp</code>, then return
<code>HTMLPreElement</code>.</p></li>

<li><p>Otherwise, if this specification defines an interface appropriate for the <span>element
type</span> corresponding to the local name <var>name</var>, then return that interface.</p></li>
Expand Down

0 comments on commit ca31ca2

Please sign in to comment.