Comment #1 on issue 1823 by kpreid.switchb.org: Try using native HTML
parsing instead of html-sanitizer.js
http://code.google.com/p/google-caja/issues/detail?id=1823
The following works in Firefox, but returns null in Chrome and Safari.
According to MDN, it works on IE and not on Opera.
new DOMParser().parseFromString('hello world', 'text/html')
The following works in Chrome and Safari, but returns a blank document in
Firefox (all writes I've tried have no effect). Safari also has the quirk
that the result of createHTMLDocument includes '<title>undefined</title>'.
var doc = document.implementation.createHTMLDocument();
doc.write('hello world');
doc.close();
So, between these two we might be able to cover all browsers we support.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.