w3c markup validator ampersand (&) error
for each & sign you got write & in your example it would be: c91588793296e2?s=50&d=http%3A%2F%
for each & sign you got write & in your example it would be: c91588793296e2?s=50&d=http%3A%2F%
In the W3 wiki page about structuring HTML5, it says: <section>: Used to either group different articles into different purposes or subjects, or to define the different sections of a single article. And then displays an image that I cleaned up: It also describes how to use the <article> tag (from same W3 link above): … Read more
As far as I know, you can only document the closure parameters if you label them: /// Calls bar with “Hello, world” /// – parameter bar: A closure to call /// – parameter theString: A string to use func foo(bar: (theString: String) -> Void) { bar(theString: “Hello, world”) } This is less than ideal: it … Read more
[Disclaimer: I’m one of the Microsoft developers on MVC and Razor, so I might be a bit biased :)] We designed Razor to be a concise templating language that uses only the minimal necessary amount of control characters. I would say that large parts of your views can be expressed with fewer characters than the … Read more
You can use every HTML5 element for Microdata … Microdata defines 5 new attributes for HTML5: itemid itemprop itemref itemscope itemtype Let’s see where they can be used. Section 5.2 says: Every HTML element may have an itemscope attribute specified. So every element can have itemscope. Further on it says: Elements with an itemscope attribute … Read more
Basically like you said those two do almost the same. However there are small differences under the hood. {x:Reference …} -> returns just a reference of an object it doesn’t create that “bridge” between two properties like binding would do. Behind all that a service is being used that searches for the given name in … Read more
<pre> PrimeCalc calc = new PrimeCalc(); Func<int, int> del = calc.GetNextPrime; </pre>
Assuming you are using valid XHTML, it’s simple to parse the HTML and make sure tags are handled properly. You simply need to track which tags have been opened so far, and make sure to close them again “on your way out”. <?php header(‘Content-type: text/plain; charset=utf-8’); function printTruncated($maxLength, $html, $isUtf8=true) { $printedLength = 0; $position … Read more
This example from the angular documentation site just does href without even assigning it to an empty string: [<a href ng-click=”colors.splice($index, 1)”>X</a>] http://docs.angularjs.org/api/ng.directive:select
A pure CSS solution with a fixed header row and first column The position: sticky property supports both sticking to the top and to the side in modern versions of Chrome, Firefox, and Edge. This can be combined with a div that has the overflow: scroll property to give you a table with fixed headers … Read more