Skip to content

Add prose regarding SyntaxError#174

Merged
shans merged 7 commits into
w3c:masterfrom
nainar:issue166
Apr 7, 2016
Merged

Add prose regarding SyntaxError#174
shans merged 7 commits into
w3c:masterfrom
nainar:issue166

Conversation

@nainar
Copy link
Copy Markdown
Contributor

@nainar nainar commented Apr 4, 2016

Comment thread css-typed-om/Overview.bs Outdated
};
</pre>

If the provided DOMString or {{LengthValue}} is invalid the relevant function throws a SyntaxError.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to describe why each method can throw.

e.g. add, etc. throw if called on or passed a LengthValue that isn't a SimpleLength or CalcLength.
parse throws if the DOMString isn't a valid representation of a length.
I don't think fromValue, fromDictionary can throw.

Comment thread css-typed-om/Overview.bs Outdated
and returns the result as a new {{LengthValue}}. This will construct
a {{SimpleLength}} if the object is a {{SimpleLength}}, or a {{CalcLength}}
if the object is a {{CalcLength}}.
if the object is a {{CalcLength}}. The function can throw a DivideByZerError if value given is 0.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"will throw a {{DivideByZeroError}} when the value given is 0."

@shans shans merged commit f6de168 into w3c:master Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants