Skip to content

Container-root w14 declaration bug class — hdr/ftr defaultAttributes lack xmlns:w14; w14-emission oracle misses nested tables / raw blocks #90

Description

@kiki830621

Problem

同 class 三實例(DA 於 #85 R2 統一裁決,全部 pre-existing、非 authoring-reachable):

  1. ContainerRootTag.defaultAttributesw:hdrw:ftr fallback 不含 xmlns:w14 —— caller-preset 帶 w14 屬性的段落放進 API-built header/footer → 該 part unbound prefix(public API 可構造,DA probe 實證)。
  2. getAllParagraphs()Authoring path (DocxWriter/Models.toXML) not transcoder-canonical: no w14:paraId + pretty-printed document.xml blocks DSL upgrade #85 augmentation guard 的 oracle)不遞迴 cell.nestedTables
  3. 同 oracle 不看 .rawBlockElement 的 raw XML。
    而序列化端會 emit 全部三個 surface。兩縫隙目前不重疊(authoring 不 stamp 這些 surface;parsed 來源必帶宣告),故 Authoring path (DocxWriter/Models.toXML) not transcoder-canonical: no w14:paraId + pretty-printed document.xml blocks DSL upgrade #85 不阻斷。

Type

bug(latent)

Source

Verify #85 R2:Codex header/footer 殘餘(判 PARTIALLY,DA 裁決 pre-existing)+ logic lens nested-table LOW:#85 (comment)

Expected

統一修法候選:(a) ContainerRootTag defaultAttributes 補 xmlns:w14;(b) 各 part toXML emit 前以序列化字串偵測 w14: 前綴補宣告(一次涵蓋所有 emission surface,#85 R2 logic 的加固建議)。

Refs #85

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions