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

Commit40d23d6

Browse files
committed
Disallow = in unquoted attributes, and allow <. The latter necessitates changing one serializer test (removing the quotes from the expected output).
--HG--extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401163
1 parentc7e3ffc commit40d23d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/html5lib/serializer/htmlserializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def serialize(self, treewalker, encoding=None):
147147
quote_attr=True
148148
else:
149149
quote_attr=reduce(lambdax,y:xor (yinv),
150-
spaceCharacters+"<>\"'",False)
150+
spaceCharacters+">\"'=",False)
151151
v=v.replace("&","&amp;")
152152
ifself.escape_lt_in_attrs:v=v.replace("<","&lt;")
153153
ifencoding:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp