forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync for validator/cpp/htmlparser (ampproject#35136)
* Do not record num_terms for <script>, <textarea> and comment nodes. PiperOrigin-RevId: 382380916 * - Move ParseAccounting from Parser to Document, so that parser can be freed after document is parsed. - Add Validate(Document*) method so clients can supply Document object instead of html string. This will help eliminate dual parsing. - Remove unused flag, it is not used anywhere outside validator-internal.cc PiperOrigin-RevId: 382613643 * - Preprocess document url attributes during parsing and attach it as Document metadata. - Renames ParseAccounting to DocumentMetadata as we will use this structure to populate more document metadata information readily available to clients. PiperOrigin-RevId: 382811824
- Loading branch information
Showing
6 changed files
with
212 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.