Closed Bug 1170206 Opened 10 years ago Closed 10 years ago

[Compat Data][Importer] Ignore sections marked for parser to skip

Categories

(developer.mozilla.org Graveyard :: General, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwhitlock, Assigned: jwhitlock)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:feature])

What problem would this feature solve? ====================================== On some pages, the Specifications section lists a prose explanation of why a feature is unspecified, rather than a compatibility table. This confuses the parser, preventing the importing of the valid Browser Compatibility section Who has this problem? ===================== Core contributors to MDN How do you know that the users identified above have this problem? ================================================================== DevEngage meeting June 1st, 2015 How are the users identified above solving this problem now? ============================================================ Rename the Specifications table so the parser will skip it. Do you have any suggestions for solving the problem? Please explain in detail. ============================================================================== Ideas in the meeting include: - Adding a css class to the <h2> or the first paragraph - Adding a KumaScript macro - Adding KumaScript start and end macros Is there anything else we should know? ====================================== Once a method is decided and implemented, the parser can learn to ignore those sections.
Blocks: 1132269
Writing team needs to decide the best solution for communicating to the parser that the section should be skipped, and implement it, for example on AnimationEvent.initAnimationEvent https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent.initAnimationEvent https://browsercompat.herokuapp.com/importer/9
Flags: needinfo?(eshepherd)
The macros have been created: we can now wrap a text-only explanation like "There is no specification for this feature." thusly: {{WhyNoSpecStart}}There is no specification for this feature.{{WhyNoSpecEnd}} Using a pair of macros to bookend the content this way allows any kind of content (styles, macros, etc) within the explanatory text. I have also updated https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/initAnimationEvent#Specifications to use this, but have not done so anywhere else yet.
Flags: needinfo?(eshepherd)
In bug 1180573, :fscholz asks that {{WhyNoSpecStart}} also sets the standardized flag on the page features to false. Is this desired behaviour?
Flags: needinfo?(eshepherd)
(In reply to John Whitlock [:jwhitlock] from comment #4) > In bug 1180573, :fscholz asks that {{WhyNoSpecStart}} also sets the > standardized flag on the page features to false. Is this desired behaviour? {{WhyNoSpecStart}} does, literally, nothing. It's just a no-op (the only content is a comment). It exists solely for the parser to detect it.
Flags: needinfo?(eshepherd)
Assignee: nobody → jwhitlock
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.