summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2014-04-30 21:54:30 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2014-04-30 21:54:30 +0000
commit89a92d3570559455ad76df4a77f29c6b3046d11e (patch)
tree9b97d279bee96b5a74c4a02150960318516e7747 /bindings
parentac011f7b0309ebcea9ce1e4dc118c22afb21c2b8 (diff)
Comment parsing: remove HTML attribute validation
Since the community says that a blacklist is not good enough, and I don't have enough time now to implement a proper whitelist, let's just remove the attribute validation. But, nevertheless, we can still communicate in the generated XML if our parser found an issue with the HTML. But this bit is best-effort and is specifically called out in the schema as such. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/xml/comment-xml-schema.rng4
1 files changed, 3 insertions, 1 deletions
diff --git a/bindings/xml/comment-xml-schema.rng b/bindings/xml/comment-xml-schema.rng
index 29a91bf674..43f3e54c28 100644
--- a/bindings/xml/comment-xml-schema.rng
+++ b/bindings/xml/comment-xml-schema.rng
@@ -582,7 +582,9 @@
<element name="rawHTML">
<optional>
<!-- If not specified, the default value is 'false'. -->
- <attribute name="isSafeToPassThrough">
+ <!-- The value 'false' or absence of the attribute does not imply
+ that the HTML is actually well-formed. -->
+ <attribute name="isMalformed">
<data type="boolean" />
</attribute>
</optional>