-
Notifications
You must be signed in to change notification settings - Fork 17
Add warning for h2[name] elements #516
base: master
Are you sure you want to change the base?
Conversation
At least for the time being, you can see how this works on a real page: |
849d14f
to
df0874d
Compare
In our most recent call, Will made a good comment about how we shouldn't have to fight with fussy source stuff. With that in mind, I changed this warn only when a |
Thanks for this, Daniel, and sorry to be slow reviewing. This looks and seems to work great. But I'm not sure how it would be used. Only logging a warning for a mismatch is not enough, I think - the problem with So my first inclination is to log for any But even then, what am I supposed to do about these? Are we planning to have a task to fix them all manually? But I'm fixing them manually, anyway, when they give me problems fixing other errors. So I'm not sure who having a separate message is really useful here. What I'd really like would be to fix Kuma's unhelpful behaviour :/. I've filed mdn/yari#6969. |
My thinking here was to help you from seemingly "wrong" linter results caused by
You're suggesting making the third row a warning as well. The benefit of this is that you'd be warned before editing that I can happily revert my change to capture those, I just thought I'd call attention to what that implies. Another route might be to make the ingredient check more aggressive: instead of checking |
If Kuma is going to do weird things with name attributes, I figured it wouldn't be a bad idea to warn about it.