fix: 使用innerHTML赋值后转小程序时,a标签转view标签+img转image标签时,把width和height写入style属性#16780
Merged
zhengyanan1 merged 2 commits into3.xfrom Nov 13, 2024
Merged
fix: 使用innerHTML赋值后转小程序时,a标签转view标签+img转image标签时,把width和height写入style属性#16780zhengyanan1 merged 2 commits into3.xfrom
zhengyanan1 merged 2 commits into3.xfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.x #16780 +/- ##
==========================================
- Coverage 56.51% 56.45% -0.07%
==========================================
Files 500 500
Lines 22765 22799 +34
Branches 5652 5644 -8
==========================================
+ Hits 12866 12871 +5
- Misses 8693 8718 +25
- Partials 1206 1210 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This was referenced Nov 2, 2024
Contributor
Author
There was a problem hiding this comment.
a标签在H5下是行内元素。
但在转小程序时,会根据参数的差异,转view 或者navigator(直接用a标签的时候)。
如果是innerHTML里用a标签的话,就直接转的text之前。如果a里套了image,就展示不出来了。
这里就是把innerHTML里a标签的转换逻辑,跟直接用a标签基本对齐
This was referenced Nov 2, 2024
18 tasks
This was referenced Nov 9, 2024
fc6d97a to
b1b4127
Compare
ZEJIA-LIU
approved these changes
Nov 13, 2024
Contributor
Author
|
fix: 修复innerHTML生成小程序时的相关逻辑。
|
This was referenced Nov 16, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: