Creates a new CTE-specific ParsoidDocument. This extends from the existing ParsoidDocument with functions specifically catered for pages that have {{copied}} (or will have) templates.
A map of all Parsoid HTML elements and their attribution notices. When notices are
detected, they are added here. ParsoidTemplateTransclusionNode is not used here
since they are regenerated every time findTemplate
is called.
The original number of {{copied}} notices in the document.
Static
Readonly
NodeStatic
addedStatic
Readonly
defaultExtremely minimalist valid Parsoid document. This includes a section 0 element for findCopiedNoticeSpot.
Look for a good spot to place a {{copied}} template.
The type of the notice to look a spot for.
A spot to place the template, null
if a spot could not be found.
Finds this document's {{copied}} notices.
An array of all CopiedTemplate objects found
Finds all content attribution notices in the talk page. This includes {{copied}}, {{merged to}}, {{merged from}}, etc.
An array of AttributionNotice objects.
Find all notices which have rows using their 'href' fields.
All found RowedAttributionNotices
Protected
getInserts a new attribution notice of a given type.
A notice type
The spot to place the template.
An object containing an HTMLIFrameElement along with helper functions to make manipulation easier.