Skip to content

Commit

Permalink
Inline validation, html attribute patterns improved for width, height…
Browse files Browse the repository at this point in the history
…, cols, rows
  • Loading branch information
hefischer committed Nov 29, 2018
1 parent 515aebc commit 915065d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arelle/XhtmlValidate.py
Expand Up @@ -96,11 +96,11 @@
"vlinke": {"type": "token", "pattern": re.compile("#[0-9a-fA-F]{6}$")},
"accesskey": {"type": "string", "length": 1},
"char": {"type": "string", "length": 1},
"height": {"type": "token", "pattern": re.compile("\d+[%]?$|\d*\.\d+[%]?$")},
"width": {"type": "token", "pattern": re.compile("\d+[%]?$|\d*\.\d+[%]?$|\d*\*$")},
"height": {"type": "token", "pattern": re.compile("\d+%?$|\d*\.\d+%?$")},
"width": {"type": "token", "pattern": re.compile("\d+%?$|\d*\.\d+%?$|\d*\*$")},
# these can be nonNegativeInteger or MultiLength in frameset
"cols": {"type": "token", "pattern": re.compile("(\d+[%]?|\d*\*)(,\d+[%]?|,\d*\*)*$")},
"rows": {"type": "token", "pattern": re.compile("(\d+[%]?|\d*\*)(,\d+[%]?|,\d*\*)*$")},
"cols": {"type": "token", "pattern": re.compile("(\d+%?|\d*\.\d+%?|\d*\*)(,\d+%?|,\d*\.\d+%?|,\d*\*)*$")},
"rows": {"type": "token", "pattern": re.compile("(\d+%?|\d*\.\d+%?|\d*\*)(,\d+%?|,\d*\.\d+%?|,\d*\*)*$")},
"rel": "NMTOKENS",
"rev": "NMTOKENS",
"datetime": "dateTime",
Expand Down

0 comments on commit 915065d

Please sign in to comment.