-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvements to implied property parsing
- add missing check for no nested microformats or explicit u-* properties before parsing for implied photo - add missing check for no h-* class on grandchild abbr elements when parsing for implied name - refactor implied name checks to simplify code (no functional changes) - fix subtle bug in :only-of-type checks for implied photo and URL. When `:only-of-type` is combined with an attribute selector (such as `.h-x>a[href]:only-of-type:not[.h-*]`), it does not mean "only of type with the attribute" as it was previously implemented, but rather "only of type irrespective of attributes" and also "has this attribute". This has the effect of being able to remove the getOnlyChildAtomWithAttr func entirely, since it's never actually needed. This was not causing any problems in the wild that I'm aware of, I just noticed it when re-reading the parsing spec.
- Loading branch information
1 parent
48b639f
commit 3daa7ff
Showing
2 changed files
with
44 additions
and
128 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