豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Incorrect conversion of table's width attrubite value #19665

@FilipTokarski

Description

@FilipTokarski

📝 Provide detailed reproduction steps (if any)

  1. Open editor with table properties
  2. Set the following HTML:
<table width="100%"> 
    <tbody> 
        <tr> 
            <td>a</td> 
            <td>b</td> 
        </tr> 
        <tr> 
            <td>c</td> 
            <td>d</td> 
        </tr> 
    </tbody> 
</table>

✔️ Expected result

The width attribute should be correctly translated to <figure> element's style:

<figure class="table" style="width:100%;"> 
    <table> 
        <tbody> 
            <tr> 
                <td>a</td> 
                <td>b</td> 
            </tr> 
            <tr> 
                <td>c</td> 
                <td>d</td> 
            </tr> 
        </tbody> 
    </table> 
</figure>

❌ Actual result

Attrubite's value is incorrect - width:100%px.

<figure class="table" style="width:100%px;"> 
    <table> 
        <tbody> 
            <tr> 
                <td>a</td> 
                <td>b</td> 
            </tr> 
            <tr> 
                <td>c</td> 
                <td>d</td> 
            </tr> 
        </tbody> 
    </table> 
</figure>

📃 Other details

Happens since version 46.0.0.


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Metadata

Metadata

Assignees

Labels

package:tablesquad:coreIssue to be handled by the Core team.support:2An issue reported by a commercially licensed client.type:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions