Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !36142

Move tooltip over SVG example from docs to visual tests

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/tkrotoff/tooltip-svg-visual-tests into main Apr 10, 2022
  • Overview 14
  • Commits 3
  • Pipelines 0
  • Changes 2

Created by: tkrotoff

Fixes https://github.com/twbs/bootstrap/issues/32715 https://github.com/twbs/bootstrap/issues/32715#issuecomment-886745329

Problem: the tooltip visual tests are already broken (not related to this PR).

Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '<img src=1 onerror=alert(123)>' is not a valid selector.

This is because of:

<button ... data-bs-container="<img src=1 onerror=alert(123)>">
  Tooltip with XSS container
</button>

Visual tests should be played by Playwright (or similar) to avoid this kind of breakage

FYI the original tooltip over SVG example was introduced here: https://github.com/twbs/bootstrap/pull/30928

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/tkrotoff/tooltip-svg-visual-tests