Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all generated HTML elements have unique and safe IDs #13636

Merged
merged 5 commits into from Jan 5, 2024

Conversation

mattpap
Copy link
Contributor

@mattpap mattpap commented Jan 5, 2024

This PR makes all generated HTML elements to use unique and safe IDs. It also addresses some trivia I found when fixing the issue.

fixes #13629

@mattpap mattpap added this to the 3.4 milestone Jan 5, 2024
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f821f2c) 92.55% compared to head (83b3585) 92.56%.

Additional details and impacted files
@@             Coverage Diff             @@
##           branch-3.4   #13636   +/-   ##
===========================================
  Coverage       92.55%   92.56%           
===========================================
  Files             323      323           
  Lines           20509    20509           
===========================================
+ Hits            18983    18985    +2     
+ Misses           1526     1524    -2     

@mattpap mattpap merged commit 5854a25 into branch-3.4 Jan 5, 2024
29 of 30 checks passed
@mattpap mattpap deleted the mattpap/13629_JSON_script_id branch January 5, 2024 22:14
bryevdv pushed a commit that referenced this pull request Jan 24, 2024
* Make all generated HTML elements have unique and safe IDs

* Fix type of `title in `html_page_for_render_items()`

* Fix `__all__` in src/bokeh/embed/notebook.py

* Make function's signature more readable

* Add regression tests
@bryevdv bryevdv mentioned this pull request Jan 24, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use globally unique and CSS safe IDs in <script type="application/json">
2 participants