mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #1384 - Match standard for colSpan/rowSpan
HTML standardizes proper behavior of colSpan and rowSpan: The main thing is that getting the .rowSpan and .colSpan IDL properties will now return the actual clamped value that we use.
This commit is contained in:
parent
af47c6fb4d
commit
51f5cb3576
6 changed files with 59 additions and 19 deletions
|
|
@ -37,7 +37,7 @@ public:
|
|||
}
|
||||
void SetColSpan(uint32_t aColSpan, ErrorResult& aError)
|
||||
{
|
||||
SetHTMLIntAttr(nsGkAtoms::colspan, aColSpan, aError);
|
||||
SetUnsignedIntAttr(nsGkAtoms::colspan, aColSpan, 1, aError);
|
||||
}
|
||||
uint32_t RowSpan() const
|
||||
{
|
||||
|
|
@ -45,7 +45,7 @@ public:
|
|||
}
|
||||
void SetRowSpan(uint32_t aRowSpan, ErrorResult& aError)
|
||||
{
|
||||
SetHTMLIntAttr(nsGkAtoms::rowspan, aRowSpan, aError);
|
||||
SetUnsignedIntAttr(nsGkAtoms::rowspan, aRowSpan, 1, aError);
|
||||
}
|
||||
//already_AddRefed<nsDOMTokenList> Headers() const;
|
||||
void GetHeaders(DOMString& aHeaders)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue