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

Commit6510542

Browse files
author
Mark Pilgrim
committed
added support for validating draggable attribute
--HG--extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40980
1 parent10f627a commit6510542

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/html5lib/filters/validator.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ def validateAttributeValueContenteditable(self, token, tagName, attrName, attrVa
365365
defvalidateAttributeValueDir(self,token,tagName,attrName,attrValue):
366366
fortinself.checkEnumeratedValue(token,tagName,attrName,attrValue,frozenset(('ltr','rtl')))or []:yieldt
367367

368+
defvalidateAttributeValueDraggable(self,token,tagName,attrName,attrValue):
369+
fortinself.checkEnumeratedValue(token,tagName,attrName,attrValue,frozenset(('true','false')))or []:yieldt
370+
368371
defcheckEnumeratedValue(self,token,tagName,attrName,attrValue,enumeratedValues):
369372
ifnotattrValueand (''notinenumeratedValues):
370373
yield {"type":"ParseError",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp