Skip to content

XHTML5 Support #29235

@fsologureng

Description

@fsologureng

Hi,
I'm trying to make to work scrollspy of bootstrap over a xhtml5 page, but active classes over the links doesn't work.
I created an example of HTML5 with the functionality working correctly and an example of XHTML5 with the functionality that isn't working properly.
Diving in the code and following a comment in a popper's issue , I realized that the problem is in the treatment of response of nodeName and tagName.
Changing the code adding toUpperCase() in line 79 of scrollspy.js, the functionality goes fixed.
With this change (and all others I detect of the same type), there are a well working example.

Can I make a pull request to add all those changes to the repository?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions