docs(security): mark the various DomAdapters as unsafe. (#10868)
Part of #8511.
This commit is contained in:
@ -35,6 +35,12 @@ function _notImplemented(methodName: any /** TODO #9100 */) {
|
||||
}
|
||||
|
||||
/* tslint:disable:requireParameterType */
|
||||
/**
|
||||
* A `DomAdapter` powered by the `parse5` NodeJS module.
|
||||
*
|
||||
* @security Tread carefully! Interacting with the DOM directly is dangerous and
|
||||
* can introduce XSS risks.
|
||||
*/
|
||||
export class Parse5DomAdapter extends DomAdapter {
|
||||
static makeCurrent() {
|
||||
parser = new parse5.Parser(parse5.TreeAdapters.htmlparser2);
|
||||
|
Reference in New Issue
Block a user