Skip to content

Validator returns incorrect column number when opening <style> is on the same line — marked as a Bug and currently Open. #40443

@abbadinikhilreddy55

Description

@abbadinikhilreddy55

Description

What the issue is

The issue is titled: “Validator returns incorrect column number when opening <style> is on the same line”.
GitHub
+1

It’s classified as a Bug and its status is Open.
GitHub

The problem arises when a <style> tag in an AMP HTML document begins on the same line as some preceding code — and then, when the built-in validator (the AMP validator) reports an error or warning related to that <style> tag, the column number indicated in the error message is incorrect (i.e. shifted/wrong).

Reproduction Steps

What the issue is

The issue is titled: “Validator returns incorrect column number when opening <style> is on the same line”.
GitHub
+1

It’s classified as a Bug and its status is Open.
GitHub

The problem arises when a <style> tag in an AMP HTML document begins on the same line as some preceding code — and then, when the built-in validator (the AMP validator) reports an error or warning related to that <style> tag, the column number indicated in the error message is incorrect (i.e. shifted/wrong).

Relevant Logs

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions