Skip to content

fix: remove obsolete iframe attributes from bilibili shortcode - #1612

Merged
HEIGE-PCloud merged 1 commit into
mainfrom
fix/bilibili-iframe-attrs
Apr 3, 2026
Merged

HEIGE-PCloud merged 1 commit into
mainfrom
fix/bilibili-iframe-attrs

Conversation

@HEIGE-PCloud

Copy link
Copy Markdown
Owner

Summary

  • Remove obsolete scrolling, border, frameborder, framespacing attributes from the bilibili <iframe> (10 errors + 30 warnings)
  • Change allowfullscreen="true" → boolean allowfullscreen (10 errors)
  • The existing .bilibili iframe CSS already handles sizing/appearance, so no visual change

Test plan

  • Run npm run validate — bilibili iframe errors/warnings should be gone
  • Check bilibili embeds still render correctly on the extended-shortcodes demo page

Closes part of #1498

🤖 Generated with Claude Code

- Remove scrolling, border, frameborder, framespacing (obsolete attrs)
- Change allowfullscreen="true" to boolean allowfullscreen

The .bilibili iframe CSS already handles sizing and appearance.
Fixes 40 W3C validation errors/warnings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@HEIGE-PCloud
HEIGE-PCloud merged commit aa1a559 into main Apr 3, 2026
5 of 6 checks passed
@HEIGE-PCloud
HEIGE-PCloud deleted the fix/bilibili-iframe-attrs branch April 3, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant