Include directive support matrix
This document describes how the include directive is resolved in the following environments:
- 
Browser (XMLHttpRequest IO module)
 - 
Node.js
 - 
Ruby (MRI)
 
| File / Message | Base dir | Browser | Node.js | Ruby | 
|---|---|---|---|---|
  | 
  | 
👌  | 
👌  | 
❌  | 
Ruby: The resolved path is /root/file:/root/path/to/file.adoc.  | 
||||
  | 
  | 
👌  | 
👌  | 
❌  | 
Ruby: The resolved path is /root/file:/root/path/to/file.adoc.  | 
||||
  | 
👌  | 
👌  | 
❌  | 
|
Ruby: include uri not readable: file:///root/path/to/file.adoc.  | 
||||
  | 
👌  | 
👌  | 
❌  | 
|
Ruby: include uri not readable: file:///root/path/../path/to/file.adoc.  | 
||||
  | 
❌  | 
👌  | 
👌  | 
|
Browser: Unable to get the current directory in a reliable way.  | 
||||
  | 
  | 
👌  | 
👌  | 
❌  | 
Ruby: include uri not readable: file:///root/path/to/file.adoc.  | 
||||
  | 
  | 
👌  | 
👌  | 
👌  | 
Not applicable  | 
||||
  | 
👌  | 
👌  | 
👌  | 
|
Not applicable  | 
||||
  | 
  | 
👌  | 
❌  | 
❌  | 
Node.js: SecurityError: Jail is not an absolute path: https://raw.com/master  | 
||||
  | 
  | 
👌  | 
❌  | 
❌  | 
Node.js: SecurityError: Jail is not an absolute path: https://raw.com/master  | 
||||
  | 
👌  | 
❌  | 
👌  | 
|
Node.js: The xmlhttprequest module does not expand path and therefore returns a 404.  | 
||||