Open ngaitonde opened 2 years ago
Wouldn't the
element make more sense? Meta needs to be a child of that one.Yeah, I think pointing this at the <head>
element (if present) would make more sense, the <html>
element otherwise, and finally falling back to the start of the document if no <head>
/ <html>
element is present.
Is your feature request related to a problem? Please describe.
My html page had a <meta> element in <head>, but the problem for a missing 'viewport' wasn't shown inline. Instead, it was shown at the root <!DOCTYPE> element.
Describe the solution you'd like:
I'd like to see problem next to the <meta> element, similar to the '<html> element must have a lang attribute...' problem. See both attached images to compare the difference.
Describe alternatives you've considered:
Additional context: