A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00208.html below:

Validator complains about type and global attrs on input tags.

Issue 76: Validator complains about type and global attrs on input tags.
http://code.google.com/p/html5lib/issues/detail?id=76
New issue report by astoneman:
What steps will reproduce the problem?

from html5lib import HTMLParser
from html5lib.filters.validator import HTMLConformanceChecker
p = HTMLParser(tokenizer=HTMLConformanceChecker)
p.parse('<input type="text" class="someClass">')
p.errors

What is the expected output? What do you see instead?

Expected output is:

[((1, 37), 'expected-doctype-but-got-start-tag', {'name': u'input'})]

Current output is:

[((1, 37),
  'unknown-attribute',
  {'attributeName': u'type', 'tagName': 'input'}),
 ((1, 37),
  'unknown-attribute',
  {'attributeName': u'class', 'tagName': 'input'}),
 ((1, 37), 'expected-doctype-but-got-start-tag', {'name': u'input'})]

Neither of the unknown-attribute errors are valid.

Please provide any additional information below.

  I tried to make a patch for this, but ended up breaking several tests 
that say "'template' attribute
not allowed on <input type=...", since 'template' is listed in 
globalAttributes.  I can't figure out
where in the spec these restrictions are coming from, but that doesn't 
mean it's not in there
somewhere.


Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to html5lib-discuss@googlegroups.com
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4