Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 35a2153

Browse files
mheverypetebacondarwin
authored andcommitted
refactor($sanitize): new implementation of the html sanitized parser
This implementation is based on using inert document parsed by the browser Closes #11442 Closes #11443 Closes #12524
1 parent 1c97a60 commit 35a2153

File tree

5 files changed

+134
-560
lines changed

5 files changed

+134
-560
lines changed

docs/content/error/$sanitize/badparse.ngdoc

-11
This file was deleted.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@ngdoc error
2+
@name $sanitize:ddns
3+
@fullName DOMDocument not supported
4+
@description
5+
6+
This error occurs when `$sanitize` sanitizer determines that `DOMDocument` api is not supported by the current browser.
7+
8+
This api is necessary for safe parsing of HTML strings into DOM trees and without it the sanitizer can't sanitize the input.
9+
10+
The api is present in all supported browsers including IE 9.0, so the presence of this error usually indicates that Angular's `$sanitize` is being used on an unsupported platform.

lib/htmlparser/htmlparser.js

-309
This file was deleted.

0 commit comments

Comments
 (0)