COMP60370: Style & Architecture Coursework
http://www.cs.man.ac.uk/~bparsia/2007/comp60370/cw2.html
All written coursework is to be handed in to the postgraduate
office by the following Monday, 12:00 am. In addition, please email XML
documents, HTML documents, schemas, stylesheets, etc. to me at bparsia@cs.man.ac.uk
with subject "COMP60370 Coursework". This will help me to check your
answers and guard against plagiarism.
- [15 marks]
Discuss the difference between user agent
conformance
and document conformance in HTML5. In particular, you should explain
why if every stream of bytes has a sensible (non-deterministic)
interpretation as an HTML5 DOM tree, there should be a stricter notion
of validity (or
document conformance) at all? Give examples of invalidities and why
they matter.
- [15 marks]
Analyze Google search, Mail, and Maps
(or
Documents) in terms of the REST architectural style, in particular, as
to whether they adhere to uniform interface constraint with regard to
a) resource identification and b) hypermedia being the engine of
application state. In particular, try to identify some of the
resources each uses, some characteristics of their identifiers, and at
least a subset of their state transitions.
- [6 marks]
For each of the following rule sets, identify the
rule with the highest priority and explain why:
h1 p.standout {color: red}
h1 p#a1 {color: blue}
h1 p#a1 {color: blue}
h1
p {color: red !important}
- [10 marks]
Describe the characteristic spirit of rules for handling parsing errors in CSS and contrast it with those for HTML5. Briefly compare the strengths and weaknesses of each approach.
- [15 marks]
Consider the last paragraph of section 5.2.1.1
of Fielding's thesis, esp. the part about relying on the author to chose and
maintain resource identifiers. What are the drawbacks of this approach?
Discuss alternative ways of dealing with the challenge of
identifiers and their maintenance.