Thanks to visit codestin.com
Credit goes to github.com

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

chore(sanitize): new implementation of the html sanitized parser #11790

Closed
wants to merge 1 commit into from

Conversation

mhevery
Copy link
Contributor

@mhevery mhevery commented May 1, 2015

This implementation is based on inert document

Review on Reviewable

@@ -1,6 +1,6 @@
'use strict';

describe('HTML', function() {
ddescribe('HTML', function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ddescribe

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@petebacondarwin petebacondarwin added this to the 1.4.x - jaracimrman-existence milestone May 5, 2015
@mhevery mhevery force-pushed the sanitize branch 5 times, most recently from e64868f to 4ab972b Compare May 6, 2015 23:34
@mhevery
Copy link
Contributor Author

mhevery commented May 6, 2015

@IgorMinar I don't know how to fix the build. Can you have a look?

@IgorMinar
Copy link
Contributor

you didn't update docs and used the wrong object to throw the error.

pull the commit from this branch: https://github.com/angular/angular.js/compare/master...IgorMinar:sanitize-fix?expand=1

review the docs for correctness..

This implementation is based on inert document

Closes angular#11442
Closes angular#11443
@mhevery
Copy link
Contributor Author

mhevery commented May 14, 2015

@IgorMinar merged your changes here, you can close your branch.

@lgalfaso
Copy link
Contributor

The sanitization process looks fine, but this PR makes some unexpected html behavior changes that change how html is rendered. eg

it('should not duplicate <br> tags', function() {
  expectHTML('<br />').not.toEqual('<br></br>');
  expectHTML('<br>').not.toEqual('<br></br>');
});

@IgorMinar
Copy link
Contributor

This PR has been superseded by #12524

@IgorMinar IgorMinar closed this Aug 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants