Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(116)

Issue 28071: Issue 1009: document.createElement('script') should not be fatal (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 8 months ago by MikeSamuel
Modified:
17 years, 4 months ago
Reviewers:
ben
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

http://code.google.com/p/google-caja/issues/detail?id=1009 For consistency with html_sanitize, and for faster results with legacy code, an attempt to create a script element should result in a warning rather than a fatal error. For bonus points a DOM element showing what the script would have been should be inserted instead. Also, a <Require feature="caja-strict"/> could be used to switch on fatal errors for such events. I don't buy the premise of this bug, but it's marked Critical, so here's a patch.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -36 lines) Patch
M src/com/google/caja/plugin/domita.js View 1 chunk +13 lines, -3 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test.html View 2 chunks +31 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/domita_test_untrusted.html View 3 chunks +23 lines, -33 lines 0 comments Download

Messages

Total messages: 2
MikeSamuel
17 years, 8 months ago (2009-03-19 22:31:54 UTC) #1
MikeSamuel
17 years, 8 months ago (2009-04-08 18:08:50 UTC) #2

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b