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

Commit

Permalink
refactor($sanitize): new implementation of the html sanitized parser
Browse files Browse the repository at this point in the history
This implementation is based on using inert document parsed by the browser

Closes #11442
Closes #11443
Closes #12524
  • Loading branch information
mhevery authored and petebacondarwin committed Sep 18, 2015
1 parent 1c97a60 commit 35a2153
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 560 deletions.
11 changes: 0 additions & 11 deletions docs/content/error/$sanitize/badparse.ngdoc

This file was deleted.

10 changes: 10 additions & 0 deletions docs/content/error/$sanitize/ddns.ngdoc
@@ -0,0 +1,10 @@
@ngdoc error
@name $sanitize:ddns
@fullName DOMDocument not supported
@description

This error occurs when `$sanitize` sanitizer determines that `DOMDocument` api is not supported by the current browser.

This api is necessary for safe parsing of HTML strings into DOM trees and without it the sanitizer can't sanitize the input.

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.
309 changes: 0 additions & 309 deletions lib/htmlparser/htmlparser.js

This file was deleted.

0 comments on commit 35a2153

Please sign in to comment.