Skip to content

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

Merged
mattpap merged 5 commits into
branch-3.4from
mattpap/13629_JSON_script_id
Jan 5, 2024
Merged

mattpap merged 5 commits into
branch-3.4from
mattpap/13629_JSON_script_id

Conversation

@mattpap

@mattpap mattpap commented Jan 5, 2024

Copy link
Copy Markdown
Contributor

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
@codecov

codecov Bot commented Jan 5, 2024

Copy link
Copy Markdown

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
@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
Chiemezuo pushed a commit to Chiemezuo/bokeh that referenced this pull request Aug 27, 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
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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