Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82047b0

Browse files
authored
Sort void elements alphabetically, document ones that don't match current standard (#563)
1 parent6ca0244 commit82047b0

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

‎html5lib/constants.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -557,24 +557,36 @@
557557
)
558558

559559
voidElements=frozenset([
560+
"area",
560561
"base",
561-
"command",
562-
"event-source",
563-
"link",
564-
"meta",
565-
"hr",
566562
"br",
567-
"img",
568-
"embed",
569-
"param",
570-
"area",
571563
"col",
564+
"command",# removed ^1
565+
"embed",
566+
"event-source",# renamed and later removed ^2
567+
"hr",
568+
"img",
572569
"input",
570+
"link",
571+
"meta",
572+
"param",# deprecated ^3
573573
"source",
574574
"track",
575575
"wbr",
576576
])
577577

578+
# Removals and deprecations in the HTML 5 spec:
579+
# ^1: command
580+
# http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-December/038472.html
581+
# https://github.com/whatwg/html/commit/9e2e25f4ae90969a7c64e0763c98548a35b50af8
582+
# ^2: event-source
583+
# renamed to eventsource in 7/2008:
584+
# https://github.com/whatwg/html/commit/d157945d0285b4463a04b57318da0c4b300a99e7
585+
# removed entirely in 2/2009:
586+
# https://github.com/whatwg/html/commit/43cbdbfbb7eb74b0d65e0f4caab2020c0b2a16ff
587+
# ^3: param
588+
# https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param
589+
578590
cdataElements=frozenset(['title','textarea'])
579591

580592
rcdataElements=frozenset([

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp