-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Currently, the selectors used for Eureka and Bozja fail if only one of the two pieces of content are unlocked.
Below is a section of the ClassJob page with both unlocked:

The current selectors for these are located here:
lodestone-css-selectors/profile/classjob.json
Lines 2 to 25 in 5d0327c
| "BOZJA": { | |
| "LEVEL": { | |
| "selector": "div.character__job__list:nth-child(7) > div:nth-child(2)" | |
| }, | |
| "METTLE": { | |
| "selector": "div.character__job__list:nth-child(7) > div:nth-child(4)", | |
| "regex": "(?P<Mettle>\\S+) \\/" | |
| }, | |
| "NAME": { | |
| "selector": "div.character__job__list:nth-child(7) > div:nth-child(3)" | |
| } | |
| }, | |
| "EUREKA": { | |
| "EXP": { | |
| "selector": "div.character__job__list:nth-child(9) > div:nth-child(4)", | |
| "regex": "(?P<CurrentEXP>\\S+) \\/ (?P<MaxEXP>\\S+)" | |
| }, | |
| "LEVEL": { | |
| "selector": "div.character__job__list:nth-child(9) > div:nth-child(2)" | |
| }, | |
| "NAME": { | |
| "selector": "div.character__job__list:nth-child(9) > div:nth-child(3)" | |
| } | |
| }, |
The problem is that the :nth-child pseudoclass can't account for either content section being missing, and no alternatives seem to be able to do so either. The :first-of-type pseudoclass doesn't apply to classes, only elements. This Stack Overflow question's answers discuss this in more detail.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
