You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(h5): match video context IDs literally - #19702
createVideoContext now matches video IDs literally, so IDs containing punctuation or spaces no longer throw. Existing page and component scoping is preserved, and regression tests cover the stated cases. No concrete merge risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
标题“fix(h5): match video context IDs literally”描述了主要变更:H5 中 createVideoContext 改为按字面值匹配视频 ID。变更摘要显示,代码不再把 id 拼入 CSS 选择器,而是遍历带 id 的 taro-video-core 元素并严格比较 id。测试也覆盖特殊字符、空格和不存在的 ID。标题简洁、具体,与变更内容一致。
Linked Issues check
[#19701] 要求在现有页面/组件查找范围内按 ID 字面值匹配 createVideoContext,避免 clip:1 等合法 ID 生成非法 CSS 选择器。PR 将 packages/taro-h5/src/api/media/video/index.ts 中的 querySelector(taro-video-core[id=${id}]) 替换为:在 findDOM(inst)…
Out of Scope Changes check
与 whole-PR diff(merge base 033c823 至 head 0a0a2bb)相比,变更仅包括:1)packages/taro-h5/src/api/media/video/index.ts 中 createVideoContext 的单行查找逻辑修改;2)packages/taro-h5/tests/media/video-context.test.ts 中新增的回…
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19701
这个 PR 做了什么?
createVideoContext 对 clip:1 等合法 ID 拼接不合法 CSS 选择器并抛错。
在现有页面/组件查找范围内按 ID 字面值匹配。5 项回归覆盖标点、空格、普通 ID、同名跨页节点和缺失目标。
这个 PR 是什么类型?
这个 PR 涉及以下平台:
Summary by CodeRabbit
验证结果
H5 全套 52 个套件、590 项测试通过。