grammaticality - Behave as if it was or it were



You can place the script in the head or body as you like. The script will behave as if it was located exactly where you put the script tag in the document.



The sentences above are taken from this JavaScript tutorial (at the very bottom). I think they made a grammatical mistake here: it should be behave as if it were rather than it was. I'm not 100% sure, so want to confirm it.



Answer



Peter's comment indicates he feels 'were' is the preferred phrasing, and so do I.


'behave as if it were' is meant to indicate it is counter-factual (substitute 'even though it's not') so the subjunctive should be used.


Also it just sounds better that way to me.


Comments

Popular posts from this blog

commas - Does this sentence have too many subjunctives?

verbs - "Baby is creeping" vs. "baby is crawling" in AmE

time - English notation for hour, minutes and seconds

etymology - Origin of "s--t eating grin"

grammatical number - Use of lone apostrophe for plural?

etymology - Where does the phrase "doctored" originate?

single word requests - What do you call hypothetical inhabitants living on the Moon?