Skip to content

Commit 51460c0

Browse files
author
James Graham
committed
Update list of special elements
1 parent d0fa00f commit 51460c0

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

html5lib/constants.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@
281281

282282
scopingElements = frozenset((
283283
(namespaces["html"], "applet"),
284-
(namespaces["html"], "button"),
285284
(namespaces["html"], "caption"),
286285
(namespaces["html"], "html"),
287286
(namespaces["html"], "marquee"),
@@ -320,20 +319,18 @@
320319
(namespaces["html"], "blockquote"),
321320
(namespaces["html"], "body"),
322321
(namespaces["html"], "br"),
322+
(namespaces["html"], "button"),
323323
(namespaces["html"], "center"),
324324
(namespaces["html"], "col"),
325325
(namespaces["html"], "colgroup"),
326326
(namespaces["html"], "command"),
327-
(namespaces["html"], "datagrid"),
328327
(namespaces["html"], "dd"),
329328
(namespaces["html"], "details"),
330-
(namespaces["html"], "dialog"),
331329
(namespaces["html"], "dir"),
332330
(namespaces["html"], "div"),
333331
(namespaces["html"], "dl"),
334332
(namespaces["html"], "dt"),
335333
(namespaces["html"], "embed"),
336-
(namespaces["html"], "event-source"),
337334
(namespaces["html"], "fieldset"),
338335
(namespaces["html"], "figure"),
339336
(namespaces["html"], "footer"),
@@ -366,16 +363,13 @@
366363
(namespaces["html"], "noframes"),
367364
(namespaces["html"], "noscript"),
368365
(namespaces["html"], "ol"),
369-
(namespaces["html"], "optgroup"),
370-
(namespaces["html"], "option"),
371366
(namespaces["html"], "p"),
372367
(namespaces["html"], "param"),
373368
(namespaces["html"], "plaintext"),
374369
(namespaces["html"], "pre"),
375370
(namespaces["html"], "script"),
376371
(namespaces["html"], "section"),
377372
(namespaces["html"], "select"),
378-
(namespaces["html"], "spacer"),
379373
(namespaces["html"], "style"),
380374
(namespaces["html"], "tbody"),
381375
(namespaces["html"], "textarea"),
@@ -384,7 +378,8 @@
384378
(namespaces["html"], "title"),
385379
(namespaces["html"], "tr"),
386380
(namespaces["html"], "ul"),
387-
(namespaces["html"], "wbr")
381+
(namespaces["html"], "wbr"),
382+
(namespaces["html"], "xmp")
388383
))
389384

390385
spaceCharacters = frozenset((

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy