vscode-edge-devtools icon indicating copy to clipboard operation
vscode-edge-devtools copied to clipboard

Missing 'viewport' problem was not shown near <meta> element

Open ngaitonde opened this issue 3 years ago • 2 comments

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:

WHIssue2 WHIssue1

ngaitonde avatar May 01 '22 22:05 ngaitonde

Wouldn't the

element make more sense? Meta needs to be a child of that one.

codepo8 avatar May 02 '22 12:05 codepo8

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.

antross avatar May 02 '22 16:05 antross