Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #5591 - HTML 5 structural elements in IE #6044

merged 2 commits into from Jul 11, 2016
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

@@ -83,3 +83,10 @@
# Translators: Reported for a significant region, normally found on web pages.
"region": _("region"),

htmlNodeNameToAriaLandmarkRoles = {
"header": "banner",
"nav": "navigation",
"main": "main",
"footer": "contentinfo",
@@ -122,6 +122,7 @@ def _normalizeControlField(self,attrs):
# MSHTML puts the unavailable state on all graphics when the showing of graphics is disabled.
# This is rather annoying and irrelevant to our users, so discard it.

This comment has been minimized.

Copy link

jcsteh Jun 8, 2016


nit: aria.htmlNodeNameToAriaLandmarkRoles.get might return None if there was no matching key. Having None in the ariaRoels list doesn't break anything right now, but it is odd and it might be confusing in future. Perhaps something like this:

lRole = aria.htmlNodeNameToAriaLandmarkRoles.get(nodeName.lower())
if lRole:
# Get the first landmark role, if any.
landmark=next((ar for ar in ariaRoles if ar in aria.landmarkRoles),None)
@@ -292,7 +293,8 @@ def _searchableAttribsForNodeType(self,nodeType):
attrs = [
{"HTMLAttrib::role": [VBufStorage_findMatch_word(lr) for lr in aria.landmarkRoles if lr != "region"]},
{"HTMLAttrib::role": [VBufStorage_findMatch_word("region")],
"name": [VBufStorage_findMatch_notEmpty]}
"name": [VBufStorage_findMatch_notEmpty]},
{"IHTMLDOMNode::nodeName": [VBufStorage_findMatch_word(lr.upper()) for lr in aria.htmlNodeNameToAriaLandmarkRoles]}
elif nodeType == "embeddedObject":
attrs = {"IHTMLDOMNode::nodeName": ["OBJECT","EMBED","APPLET"]}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.